Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(typed-enum): modify spectral rule to look only at schemas #719

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

dpopp07
Copy link
Member

@dpopp07 dpopp07 commented Jan 27, 2025

This Spectral rule checks any object that has a type and enum field, regardless of whether it is in a valid schema location or not. This fix modifies the given paths to run the same functionality against schema objects only.

This will resolve a number of recently observed false positives.

This Spectral rule checks any object that has a type and enum field,
regardless of whether it is in a valid schema location or not. This
fix modifies the given paths to run the same functionality against
schema objects only.

Signed-off-by: Dustin Popp <[email protected]>
Copy link
Member

@padamstx padamstx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dpopp07 dpopp07 merged commit 4517084 into main Jan 27, 2025
7 checks passed
@dpopp07 dpopp07 deleted the dp/override-typed-enum branch January 27, 2025 20:15
ibm-devx-sdk pushed a commit that referenced this pull request Jan 27, 2025
## @ibm-cloud/openapi-ruleset [1.28.4](https://github.com/IBM/openapi-validator/compare/@ibm-cloud/[email protected]...@ibm-cloud/[email protected]) (2025-01-27)

### Bug Fixes

* **typed-enum:** modify spectral rule to look only at schemas ([#719](#719)) ([4517084](4517084))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 1.28.4 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@ibm-devx-sdk
Copy link

🎉 This PR is included in version 1.32.4 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants